package com.qiangqiang.resoldhouse.exception;

import com.qiangqiang.resoldhouse.enums.AgentEnums;

/**
 * Description: resoldhouse
 * Create by jeff on 2018-8-10 10:22
 */
public class AgentException extends RuntimeException {
    private Integer code;

    public AgentException(AgentEnums agentEnums){
        super(agentEnums.getMessage());
        this.code = agentEnums.getCode();
    }
}
